const config = {
  development: {
    // 端口监听
    port: 3001,
    // 本机url，用来给一些资源加上地址前缀
    baseUrl: "http://106.52.144.162:3001/",
    // 开始使用日期 用来作为考勤统计的起点
    startDate: "2022-11-01",
    mysqlConfig: {
      host: "127.0.0.1",
      port: 3307,
      user: "root",
      password: "mysql250",
      database: "oa",
      connectionLimit: 10,
    },
    // redis配置
    redisConfig: {
      host: "1.13.15.200",
      port: 9006,
      database: 8,
      password: "Jinyu123654@jinyu##",
      opts: {
        auth_pass: "Jinyu123654@jinyu##",
      },
    },
    sms: {
      url: "http://222.188.78.33:9010/sms/sendSms",
      codeUrl: "http://222.188.78.33:9010/sms/sendVerifyCode",
      secret: "lkuoiusdh9786f4574654df"
    }
  },
  joey: {
    // 端口监听
    port: 3002,
    // 本机url，用来给一些资源加上地址前缀
    baseUrl: "http://106.52.144.162:3002/",
    // 开始使用日期 用来作为考勤统计的起点
    startDate: "2022-11-01",
    mysqlConfig: {
      host: "127.0.0.1",
      port: 3307,
      user: "root",
      password: "mysql250",
      database: "oa-joey",
      connectionLimit: 10,
    },
    // redis配置
    redisConfig: {
      host: "1.13.15.200",
      port: 9006,
      db: 8,
      password: "Jinyu123654@jinyu##",
      opts: {
        auth_pass: "Jinyu123654@jinyu##",
      },
    },
    sms: {
      url: "http://222.188.78.33:9010/sms/sendSms",
      codeUrl: "http://222.188.78.33:9010/sms/sendVerifyCode",
      secret: "lkuoiusdh9786f4574654df"
    }
  },
  production: {
    // 端口监听
    port: 9994,
    baseUrl: "http://106.52.144.162:3001/",
    startDate: "2022-11-01",
    mysqlConfig: {
      host: "127.0.0.1",
      port: 9005,
      user: "root",
      password: "Yczqbhq",
      database: "oa",
      connectionLimit: 10,
    },
    // redis配置
    redisConfig: {
      host: "127.0.0.1",
      port: 6379,
      password: "redis250",
      opts: {
        auth_pass: "redis250",
      },
    },
    sms: {
      url: "http://222.188.78.33:9010/sms/sendSms",
      codeUrl: "http://222.188.78.33:9010/sms/sendVerifyCode",
      secret: "lkuoiusdh9786f4574654df"
    }
  },
  huawei: {
    // 端口监听
    port: 9001,
    baseUrl: "http://218.206.158.122:9001/",
    startDate: "2023-01-09",
    mysqlConfig: {
      host: "127.0.0.1",
      port: 9005,
      user: "root",
      password: "Ycbhq@2023",
      database: "oa",
      connectionLimit: 10,
    },
    // redis配置
    redisConfig: {
      host: "127.0.0.1",
      port: 9004,
      password: "Ycbhq@2023",
      opts: {
        auth_pass: "Ycbhq@2023",
      },
    },
    sms: {
      url: "http://222.188.78.33:9010/sms/sendSms",
      codeUrl: "http://222.188.78.33:9010/sms/sendVerifyCode",
      secret: "lkuoiusdh9786f4574654df"
    }
  },
};

module.exports = config[process.env.NODE_ENV || "development"];
